package com.example.decorator;

/**
 * 抽象装饰父类
 */
public class FilterComponent implements Component {
    private Component component;

    public FilterComponent(Component component) {
        this.component = component;
    }

    @Override
    public void showName() {
        component.showName();
    }
}
